package com.itzsj.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message {

    private Integer id;

    private String sno;

    private String eno;

    private String content;

    private String respond;

    private Integer jobId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private LocalDateTime contentTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private LocalDateTime respondTime;

    public Message(String sno, String eno, String content, Integer jobId, LocalDateTime contentTime){
        this.sno = sno;
        this.eno = eno;
        this.content = content;
        this.jobId = jobId;
        this.contentTime = contentTime;
    }
}
